package pers.course.week5;

import java.util.Scanner;

public class PrimeFactors {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int num = in.nextInt();
        int k = 2;
        while(num != k) {
            if (num % k == 0) {
                num = num / k;
                System.out.print(k + "*");
            } else {
                k++;
            }
        }
        System.out.println(num);
    }
}
